#pragma once
#include<iostream>
#include"./request/add_request.pb.h"
#include"./request/del_request.pb.h"
#include"./request/find_one_request.pb.h"
#include"./response/add_response.pb.h"
#include"./response/base_response.pb.h"
#include"./response/del_response.pb.h"
#include"./response/find_all_response.pb.h"
#include"./response/find_one_response.pb.h"

class ContactsServer
{
public:
    void addContact();
    void delContact();
    void findOneContact();
    void findContacts();
private:
    void buildAddContactRequest(add_req::AddContactRequest* req);
    void printFindOneContactResponse(find_one_resp::FindOneResponse& resp);
    void printFindAllContactResponse(find_all_resp::FindAllResponse& resp);
};